<template>
  <MyDialog title="设备收益" :visible="showDialog" @ok="close" @close="close">
    <PageContent
      ref="pageContent"
      style="height: 400px"
      :content-table-config="contentConfig"
      :form-data="formData"
    />
  </MyDialog>
</template>

<script>
import dialogMixin from "@/mixins/dialogMixin";
import { contentConfig } from "./config/deviceIncome.config";
export default {
  mixins: [dialogMixin],
  props: {
    sn: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      contentConfig,
      formData: {},
    };
  },
  mounted() {
    this.contentConfig.pageInfo.currentPage = 1;
    this.formData.sn = this.sn;
    this.$nextTick(() => {
      this.$refs.pageContent.queryTblMain();
    });
  },
};
</script>

<style lang="scss" scoped></style>
